java interface protected method